import java.io.Serializable;
import java.util.*;

public class Titulaire implements Serializable {

	private static final long serialVersionUID = -3538775585286841309L;

	private String m_pNom;
	private String m_pPrenom;
	private String m_pDateNaissance;
	private String m_pAdresse;

    public Titulaire(final String nom, final String prenom, final String date, final String adresse) {

    	m_pNom = nom.toUpperCase();
		m_pPrenom = prenom.substring(0,1).toUpperCase() + prenom.substring(1).toLowerCase();
		m_pDateNaissance = date;
		m_pAdresse = adresse;
    }

    public String toString() {

    	return m_pNom + " " + m_pPrenom + " (" + m_pDateNaissance + ") - " + m_pAdresse;
    }
}